<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="multiple" value="" />
<c:if test="${!empty param.multiple }">
	<c:set var="multiple" value='multiple="multiple"' />
</c:if>

<select id="${param.name }" name="${param.name }" ${multiple }>
	<c:forEach items="${param.items }" var="item">
		<c:set var="isSelected" value="" />
		<c:forEach items="${param.selected }" var="selected">
			<c:if test="${item==selected }">
				<c:set var="isSelected" value='selected="selected"' />
			</c:if>
		</c:forEach>
		<option value="<c:out value="${item }"/>" ${isSelected }><c:out value="${item }"/></option>
	</c:forEach>
</select>